package sample.model;

public class ResponseMsg {

	private int result;
	private String msg;
	private Object data;
	
	static public String SUCCESS="SUCCESS";
	static public String FAIL="fail";
	public int getResult() {
		return result;
	}
	public void setResult(int result) {
		this.result = result;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
		if(msg.equals(SUCCESS))
		{
			this.result=1;
		}
		else
		{
			this.result=-1;
		}
	}
	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}

	
}
